import React, { Component } from 'react'

export default class FoodsDetail extends Component {
  componentDidMount () {
    const { id, name } = this.props.match.params
    console.log(id, name)
  }
  render () {
    return (
      <div>
        FoodsDetail
        <img src='https://p0.meituan.net/deal/eb4c1d8d2d9948ef22043f21cdab9708125950.jpg' />
      </div>
    )
  }
}
